package com.example.demo.myannotation;

import java.lang.annotation.*;

@Documented
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface CustomCachePut {         //缓存添加注解

    String value() default "";

    /*
    key为方法参数名、参数名的属性、返回值、返回值的属性
    Person  fun(String name,Person person){} //key为"#name"、“#person.id”、“#result”、"#result.id"
     */
    String key() default "";
}
